package com.huaxinkaiye.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by imac on 15/2/3.
 * 该类用于自定义的toast
 */
public class ToastUtil {
    public static void show(Context context, String message) {
//        Toast result = new Toast(context);
//        View v = LayoutInflater.from(context).inflate(R.layout.toast_view, null);
//        TextView tv = (TextView) v.findViewById(R.id.message);
//        tv.setText(message);
//        result.setDuration(Toast.LENGTH_SHORT);
//        result.setView(v);
//        result.show();
        Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
    }
}
